package _04set接口;

public class Pocket {

	String pocket;
	public static Pocket getPocket() {
		String[] a={"红桃","方块","梅花","桃心","大王","小王"};
		
		int num=(int)(Math.random()*12)+1;
		Pocket p=new Pocket();
		if(num<=10&&num>0)
		{
			p.pocket=a[(int)(Math.random()*4)]+(num==1?'A':num);
		}
		else
		{
			p.pocket=num==11?a[4]:a[5];
		}
			return p;
		
	}
	@Override
	public String toString() {
		return "Pocket [pocket=" + pocket + "]";
	}
	
}
